package com.tj.jinzao.activity;

import android.support.v4.app.Fragment;

import com.tj.jinzao.R;
import com.tj.jinzao.base.BaseActivity;
import com.tj.jinzao.fragment.MyMessageTypeFragment;

/**
 * 各种我的消息界面
 * Created by wjy on 2019/1/5.
 */
public class MyMessageTypeActivity extends BaseActivity {

    private int mType;

    @Override
    protected void setupView() {
        super.setupView();
        setTitleText(mType == 1 ? "评论和@" : "赞和收藏");
    }

    @Override
    protected int getLeftButtonResId() {
        return R.mipmap.ic_back;
    }

    @Override
    public int getLayoutResource() {
        return R.layout.base_activity_fragment_layout;
    }

    @Override
    protected Fragment createFragment() {

        mType = getIntent().getIntExtra("type", 1);
        return MyMessageTypeFragment.newInstance(mType);
    }
}
